projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b414e
)
testgtk: Use symbolic names for button numbers
author
Carlos Garcia Campos
<cgarcia@igalia.com>
Wed, 25 Jan 2012 18:12:18 +0000
(19:12 +0100)
committer
Carlos Garcia Campos
<carlosgc@gnome.org>
Fri, 27 Jan 2012 08:47:44 +0000
(09:47 +0100)
tests/testgtk.c
patch
|
blob
|
history
diff --git
a/tests/testgtk.c
b/tests/testgtk.c
index 34d5f31a8c96a08c94007226c99efa1dfa7ba87e..203ecb45554b9697859c0eda91b03697c03b2cf3 100644
(file)
--- a/
tests/testgtk.c
+++ b/
tests/testgtk.c
@@
-4631,10
+4631,10
@@
cursor_event (GtkWidget *widget,
GtkSpinButton *spinner)
{
if ((event->type == GDK_BUTTON_PRESS) &&
- ((event->button.button ==
1
) ||
- (event->button.button ==
3
)))
+ ((event->button.button ==
GDK_BUTTON_PRIMARY
) ||
+ (event->button.button ==
GDK_BUTTON_SECONDARY
)))
{
- gtk_spin_button_spin (spinner, event->button.button ==
1
?
+ gtk_spin_button_spin (spinner, event->button.button ==
GDK_BUTTON_PRIMARY
?
GTK_SPIN_STEP_FORWARD : GTK_SPIN_STEP_BACKWARD, 0);
return TRUE;
}